const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    port: 8183,
    proxy: {
      "/api":{
        target: "http://39.104.24.231:8088",
        changeOrigin: true,
      }
    }
  },
  css:{
    loaderOptions: {
      scss: {
        additionalData: `@import "@/css/global.scss";`
      }
    }
  },
  chainWebpack: (config) => {
    config.plugin('html')
        .tap(args => {
          args[0].title = '科研成果管理系统'
          return args;
        })
  }
})
